<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    .active {
      width: 300px;
      height: 200px;
      border: 2px solid burlywood;
    }

    .error {
      background: coral;
    }

    .textColor {
      color: deeppink;
    }

  </style>
</head>

<body>
  <!-- 对象和数组结合使用 -->
  <div id="app">
    <div :class="[activeClass,errorClass,{textColor:isTextColor}]">
      Lorem ipsum dolor, sit amet consectetur adipisicing elit. Sequi accusamus rerum, tempore neque atque sint vitae sunt voluptatem eaque minima officiis qui architecto in, quo amet dicta, expedita delectus hic.
    </div>
  </div>
  <script src="../js/vue.js"></script>
  <script>
    const vm = new Vue({
      el: "#app",
      data: {
        activeClass: "active",
        errorClass: "error",
        isTextColor: true
      },
      methods: {}
    });

  </script>
</body>

</html>
